package com.linksfield.topup.service;

import com.linksfield.topup.config.dto.ResultDataDto;
import com.linksfield.topup.entity.interfaces.ordermanage.details.request.RequestOrderDetails;
import com.linksfield.topup.entity.interfaces.ordermanage.orderexport.request.RequestOrderExport;
import com.linksfield.topup.entity.interfaces.ordermanage.search.request.RequestOrderSearch;

import javax.servlet.http.HttpServletResponse;

/**
 * 订单管理业务逻辑处理接口
 *
 * @author: lm
 * @date: 2019-12-09 15:40
 */
public interface OrderService {
    /***
     *  订单管理：搜索:
     *  点击“订单管理”默认请求此接口，只不过所有默认条件为空
     * @param request
     * @param token
     * @return
     */
    ResultDataDto search(RequestOrderSearch request,
                         String token);

    /***
     *订单管理：订单详情
     * @param request
     * @param token
     * @return
     */
    ResultDataDto orderDetails(RequestOrderDetails request,
                               String token);

    /**
     * 订单管理：导出订单
     *
     * @param request
     * @param token
     * @param response
     * @return
     */
    ResultDataDto orderExport(RequestOrderExport request,
                              String token,
                              HttpServletResponse response);

    /**
     * 确认退款
     *
     * @param request
     * @param token
     * @return
     */
    ResultDataDto refund(RequestOrderDetails request,
                         String token);
}
